<?php

namespace Admin\Models\sys;

use Helpers\Cache;
use Admin\Models\BaseModel;

class XhsysClassification extends BaseModel
{

    /**
     *
     * @var integer
     */
    public $id;

    /**
     *
     * @var string
     */
    public $sName;

    /**
     *
     * @var integer
     */
    public $iParentId;

    /**
     *
     * @var string
     */
    public $sTag;

    /**
     *
     * @var integer
     */
    public $iType;

    /**
     *
     * @var string
     */
    public $mDesc;

    /**
     *
     * @var integer
     */
    public $bDelete;

    /**
     *
     * @var string
     */
    public $tCreateDate;

    /**
     *
     * @var string
     */
    public $iCreateUserId;

    /**
     *
     * @var string
     */
    public $tLastModifyDate;

    /**
     *
     * @var string
     */
    public $iLastModifyUserId;

    /**
     * Initialize method for model.
     */
    public function initialize()
    {
        parent::initialize();
        $this->setSource("'XHSys_Classification'");
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'XHSys_Classification';
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return \Phalcon\Mvc\Model\ResultsetInterface
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return XhsysClassification
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }
}
